package com.crape.message.dao;

import java.util.List;

import com.crape.common.exceptions.DAOException;
import com.crape.common.model.MsgUser;

public interface IMsgUserDAO {

	MsgUser getMsgUserById(Long id) throws DAOException;

	List<MsgUser> getPagedMsgInfos(Long receiveid, Long sendid, Integer startIndex, Integer pageSize) throws DAOException;
	
	Long countMsgInfos(Long receiveid, Long sendid) throws DAOException;

	List<MsgUser> getPagedReceivedMsgs(Long receiveid, Integer startIndex, Integer pageSize) throws DAOException;

	Long countReceivedMsgs(Long receiveid) throws DAOException;

	List<MsgUser> getPagedSendedMsgs(Long sendid, Integer startIndex, Integer pageSize) throws DAOException;

	Long countSendedMsgs(Long sendid) throws DAOException;

	void insertMsgUser(MsgUser msgUser) throws DAOException;

	void deleteMsgUserById(Long id) throws DAOException;

}
